package cn.wjh.business.mapper;

import java.util.List;

import cn.wjh.business.domain.Focus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 关注Mapper接口
 *
 * @author jiraWu
 * @date 2023-10-22
 */
public interface FocusMapper extends BaseMapper<Focus> {
	/**
	 * 查询关注
	 *
	 * @param focusId 关注主键
	 * @return 关注
	 */
	public Focus selectFocusByFocusId(Long focusId);

	/**
	 * 查询关注列表
	 *
	 * @param focus 关注
	 * @return 关注集合
	 */
	public List<Focus> selectFocusList(Focus focus);

	/**
	 * 新增关注
	 *
	 * @param focus 关注
	 * @return 结果
	 */
	public int insertFocus(Focus focus);

	/**
	 * 修改关注
	 *
	 * @param focus 关注
	 * @return 结果
	 */
	public int updateFocus(Focus focus);

	/**
	 * 删除关注
	 *
	 * @param focusId 关注主键
	 * @return 结果
	 */
	public int deleteFocusByFocusId(Long focusId);

	/**
	 * 批量删除关注
	 *
	 * @param focusIds 需要删除的数据主键集合
	 * @return 结果
	 */
	public int deleteFocusByFocusIds(Long[] focusIds);

	/*获取我的关注*/
	List<Focus> selectMyFocusList(Focus focus);
}
